<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<!--  Version: Multiflex-3 Update-7 / Layout-5             -->
<!--  Date:    January 15, 2007                            -->
<!--  Author:  Wolfgang                                    -->
<!--  License: Fully open source without restrictions.     -->
<!--           Please keep footer credits with a link to   -->
<!--           Wolfgang (www.1-2-3-4.info). Thank you!     -->

<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="cache-control" content="no-cache" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout5_setup.css" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout5_text.css" />
  <title>GiveAway</title>
</head>

<!-- Global IE fix to avoid layout crash when single word size wider than column width -->
<!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]-->

<body>
  <!-- Main Page Container -->
  <div class="page-container">

    <!-- For alternative headers START PASTE here -->

    <!-- A. HEADER -->      
    <div class="header">
      
      <!-- A.1 HEADER TOP -->
      <div class="header-top">
        
        <!-- Sitelogo and sitename -->
        <a class="sitelogo"></a>
        <div class="sitename">
          <h1><a href="index.php">GiveAway</a></h1>
        </div>
		

        <!-- Navigation Level 1 -->
        <div class="nav1">
          <ul>
            <li><a href="index.php" title="Go to Start page">Home</a></li>
            <li><a href="registrar.php" title="Get to know who we are">Registrate!</a></li>
            <li><a href="contacto.php" title="Get in touch with us">Cont&aacute;ctanos</a></li>																		
          </ul>
        </div>              
      </div>
      
      <!-- A.2 HEADER MIDDLE -->
      <div class="header-middle">    
   
        <!-- Site message -->
        <div class="sitemessage">
          <h1>COMPARTE</h1>
          <h2>Intercambio y donación de productos</h2>
          <h3><a href="#">&rsaquo;&rsaquo;&nbsp;M&aacute;s detalles</a></h3>
        </div>        
      </div>
      
      <!-- A.3 HEADER BOTTOM -->
      <div class="header-bottom">
      
        <!-- Navigation Level 2 (Drop-down menus) -->
	  </div>

      <!-- A.4 HEADER BREADCRUMBS -->

  </div>

    <!-- For alternative headers END PASTE here -->

    <!-- B. MAIN -->
    <div class="main">
 
      <!-- B.3 SUBCONTENT -->
      <div class="main-subcontent">

        <!-- Subcontent unit -->

        <!-- Subcontent unit -->


        <!-- Subcontent unit -->

      </div>        
 
      <!-- B.1 MAIN CONTENT -->
      <div class="main-content">
        
        <!-- Pagetitle -->
        <h1 class="pagetitle" style="width: 600px !important;">Bienvenid@!</h1>

        <!-- Content unit - One column -->
        <div class="column1-unit" style="width: 600px !important;">
		<h1>Registrate</h1>
                                             <p>
									Todos los campos son obligatorios
									<?php if (isset($_GET["e"]) && $_GET["e"] >= 2){
											echo '<h2>'; 
										if ($_GET["e"] == 2) echo'Debes ingresar todos los datos </h2>';
										else if ($_GET["e"] == 3) echo'Las claves no coinciden </h2>';
										else if ($_GET["e"] == 4) echo 'Error al registrarte, intenta denuevo</h2>';
										}
									?>
										<form method="post" action="registro.php">
										<table>
											<tr>
												<td>Username</td>
												<td><input type="text" name="username" id="username" class="text" /></td>
											</tr>
												<tr>
												<td>Nombre</td>
												<td><input type="text" name="nombre" id="nombre" class="text" /></td>
											</tr>
											<tr>
												<td>Email</td>
												<td><input type="text" name="email" id="email" class="text" /></td>
											</tr>
											<tr>
												<td>Fecha de Nacimiento (aaaa-mm-dd)</td>
												<td><input type="text" name="fecha_nac" id="fecha_nac" class="text" /></td>
											</tr>
											<tr>
												<td>Direcci&oacute;n</td>
												<td><input type="text" name="direccion" id="direccion" class="text" /></td>
											</tr>
											<tr>
												<td>Ciudad</td>
												<td><SELECT NAME="ciudad" SIZE="1"> 
												<OPTION VALUE="1">Santiago</OPTION> 
												<OPTION VALUE="2">Valparaiso</OPTION> 
												<OPTION VALUE="3">Viña del Mar</OPTION> 
												</SELECT> </td>
											</tr>
											<tr>
												<td>Tel&eacute;fono</td>
												<td><input type="text" name="telefono" id="telefono" class="text" /></td>
											</tr>
											<tr>
												<td>Clave</td>
												<td><input type="password" name="pass1" id="pass1" class="text" /></td>
											</tr>
											<tr>
												<td>Confirme la clave</td>
												<td><input type="password" name="pass2" id="pass2" class="text" /></td>
											</tr>
											<tr>
												<td colspan = "2"><input type="submit" value="Guardar" name="enviado" class="button" /></td>
											</tr>
										</table>	
										</form>
									</p>
          
          
        </div>          
        <hr class="clear-contentunit" style="width: 600px !important;" />

      </div>
      
      <!-- B.1 MAIN NAVIGATION -->
      <div class="main-navigation">

        <!-- Navigation Level 3 -->
        <div class="round-border-topleft"></div>
                               
        <!-- Login -->
        <h1>Login</h1>
        <div class="loginform">
		<form method="post" action="login.php">
								<table>
									<?php
										if (isset($_GET["e"])){
											echo '<tr>
										<td colspan="2"style="text-align: center; color: #df0024;">'; 
										if ($_GET["e"] == 0) echo'Debes Ingresar ambos Datos</td></tr>';
										else if ($_GET["e"] == 1) echo'User o Password incorrecta</td></tr>';
										else if($_GET["e"] == 5) echo'Registro exitoso, ahora puedes logearte</td></tr>';
										}
									?>
									<tr>
										<td>Usuario<br/><input name="username" type="text"/></td>
									</tr>
									<tr>
										<td>Contraseña<br /><input name="pass" type="password" /></td>
									</tr>
																		<tr>
										<td colspan="2"style="text-align: center;"><input type="submit" value="Logeame!"></td>
									</tr>
									<tr>
										<td colspan="2"style="text-align: center; font-size: 12px;">¿No tienes cuenta? <a href="registrar.php" style ="font-size: 12px;">Reg&iacute;strate</a></td>
									</tr>
								</table>
							</form>
        </div>
      </div>
    </div>
      
    <!-- C. FOOTER AREA -->      

    <div class="footer">
      <p>Copyright &copy; 2011 GiveAway | All Rights Reserved</p>
      <p class="credits">Design by <a href="http://www.1-2-3-4.info/" title="Designer Homepage">Wolfgang</a></p>
    </div>      
  </div> 
  
</body>
</html>



